package com.example.dbsample.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.example.dbsample.annotation.EsIndexAlias;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("sys_dict_data")
@EsIndexAlias(value = "sample_sys_dict_data")
public class SysDictData implements Serializable {
    /**
     * id
     */
    @TableId
    private Long id;

    private Long dictTypeId;

    private String dictLabel;

    private String dictValue;

    private String labelClass;

    private String remark;

    private Integer sort;

    private Long tenantId;

    private Integer version;


    /**
     * 删除标记
     */
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private Integer deleted;

    private Long creator;

    private Date createTime;

    private Long updater;

    private Date updateTime;

    private static final long serialVersionUID = 1L;

    // TODO 临时去除
    //private List<JavaLambdaUser> testJavaLambdaUserList;

    //public Long getId() {
    //    return id;
    //}
    //
    //public void setId(Long id) {
    //    this.id = id;
    //}
    //
    //public Long getDictTypeId() {
    //    return dictTypeId;
    //}
    //
    //public void setDictTypeId(Long dictTypeId) {
    //    this.dictTypeId = dictTypeId;
    //}
    //
    //public String getDictLabel() {
    //    return dictLabel;
    //}
    //
    //public void setDictLabel(String dictLabel) {
    //    this.dictLabel = dictLabel == null ? null : dictLabel.trim();
    //}
    //
    //public String getDictValue() {
    //    return dictValue;
    //}
    //
    //public void setDictValue(String dictValue) {
    //    this.dictValue = dictValue == null ? null : dictValue.trim();
    //}
    //
    //public String getLabelClass() {
    //    return labelClass;
    //}
    //
    //public void setLabelClass(String labelClass) {
    //    this.labelClass = labelClass == null ? null : labelClass.trim();
    //}
    //
    //public String getRemark() {
    //    return remark;
    //}
    //
    //public void setRemark(String remark) {
    //    this.remark = remark == null ? null : remark.trim();
    //}
    //
    //public Integer getSort() {
    //    return sort;
    //}
    //
    //public void setSort(Integer sort) {
    //    this.sort = sort;
    //}
    //
    //public Long getTenantId() {
    //    return tenantId;
    //}
    //
    //public void setTenantId(Long tenantId) {
    //    this.tenantId = tenantId;
    //}
    //
    //public Integer getVersion() {
    //    return version;
    //}
    //
    //public void setVersion(Integer version) {
    //    this.version = version;
    //}
    //
    //public Byte getDeleted() {
    //    return deleted;
    //}
    //
    //public void setDeleted(Byte deleted) {
    //    this.deleted = deleted;
    //}
    //
    //public Long getCreator() {
    //    return creator;
    //}
    //
    //public void setCreator(Long creator) {
    //    this.creator = creator;
    //}
    //
    //public Date getCreateTime() {
    //    return createTime;
    //}
    //
    //public void setCreateTime(Date createTime) {
    //    this.createTime = createTime;
    //}
    //
    //public Long getUpdater() {
    //    return updater;
    //}
    //
    //public void setUpdater(Long updater) {
    //    this.updater = updater;
    //}
    //
    //public Date getUpdateTime() {
    //    return updateTime;
    //}
    //
    //public void setUpdateTime(Date updateTime) {
    //    this.updateTime = updateTime;
    //}
    //
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", dictTypeId=").append(dictTypeId);
        sb.append(", dictLabel=").append(dictLabel);
        sb.append(", dictValue=").append(dictValue);
        sb.append(", labelClass=").append(labelClass);
        sb.append(", remark=").append(remark);
        sb.append(", sort=").append(sort);
        sb.append(", tenantId=").append(tenantId);
        sb.append(", version=").append(version);
        sb.append(", deleted=").append(deleted);
        sb.append(", creator=").append(creator);
        sb.append(", createTime=").append(createTime);
        sb.append(", updater=").append(updater);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SysDictData other = (SysDictData) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getDictTypeId() == null ? other.getDictTypeId() == null : this.getDictTypeId().equals(other.getDictTypeId()))
            && (this.getDictLabel() == null ? other.getDictLabel() == null : this.getDictLabel().equals(other.getDictLabel()))
            && (this.getDictValue() == null ? other.getDictValue() == null : this.getDictValue().equals(other.getDictValue()))
            && (this.getLabelClass() == null ? other.getLabelClass() == null : this.getLabelClass().equals(other.getLabelClass()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getSort() == null ? other.getSort() == null : this.getSort().equals(other.getSort()))
            && (this.getTenantId() == null ? other.getTenantId() == null : this.getTenantId().equals(other.getTenantId()))
            && (this.getVersion() == null ? other.getVersion() == null : this.getVersion().equals(other.getVersion()))
            && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
            && (this.getCreator() == null ? other.getCreator() == null : this.getCreator().equals(other.getCreator()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdater() == null ? other.getUpdater() == null : this.getUpdater().equals(other.getUpdater()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getDictTypeId() == null) ? 0 : getDictTypeId().hashCode());
        result = prime * result + ((getDictLabel() == null) ? 0 : getDictLabel().hashCode());
        result = prime * result + ((getDictValue() == null) ? 0 : getDictValue().hashCode());
        result = prime * result + ((getLabelClass() == null) ? 0 : getLabelClass().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getSort() == null) ? 0 : getSort().hashCode());
        result = prime * result + ((getTenantId() == null) ? 0 : getTenantId().hashCode());
        result = prime * result + ((getVersion() == null) ? 0 : getVersion().hashCode());
        result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
        result = prime * result + ((getCreator() == null) ? 0 : getCreator().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdater() == null) ? 0 : getUpdater().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }

}